package com.awaken.content.config;

import lombok.extern.slf4j.Slf4j;
import org.springframework.boot.autoconfigure.condition.ConditionalOnExpression;
import org.springframework.context.annotation.Configuration;

/**
 * RocketMQ消息队列配置类
 * 只有当 awaken.features.mq.enabled=true 且 type=rocketmq 时才生效
 *
 * @author awaken-lin
 */
@Slf4j
@Configuration
@ConditionalOnExpression("'${awaken.features.mq.enabled:false}' == 'true' && '${awaken.features.mq.type:}' == 'rocketmq'")
public class RocketMQConfig {

    public RocketMQConfig() {
        log.info("✅ RocketMQ消息队列功能已启用并装配完成");
    }
}
